﻿namespace RIA.NTiersApp
{
    using System.Windows.Controls;
    using System.Windows.Navigation;
    using RIA.NTiersApp.Assets.Resources;
    using RIA.ServicesLibrary.Web.Services;
    using RIA.ServicesLibrary.Web;
    using System.Net;
    using System;
    using RIA.NTiersApp.Globals;

    public partial class Home : Page
    {
        public Home()
        {
            InitializeComponent();

            this.Title = ApplicationStrings.HomePageTitle;
            
            
        }
        ListCacheLoader loader = null;
        /// <summary>
        ///     Executes when the user navigates to this page.
        /// </summary>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            loader = this.DataContext as ListCacheLoader;
            loader.LoadAllList ();
        }
    }
}